
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head th:fragment="header">
<meta charset="UTF-8" />
<title>Layout</title>
<link rel="stylesheet" th:href="@{/css/pure.min.css}"
	href="../../css/pure.min.css">
<link rel="stylesheet" th:href="@{/css/reset.css}"
	href="../../js/lib/toastr/build/toastr.css" />
<link rel="stylesheet" th:href="@{/css/reset.css}"
	href="../../css/reset.css" />
<link rel="stylesheet" th:href="@{/css/base.css}"
	href="../../css/base.css" />
<link rel="stylesheet" th:href="@{/css/style.css}"
	href="../../css/style.css" />
<link rel="stylesheet" th:href="@{/css/headSlide.css}"
	href="../../css/headSlide.css" />
<link rel="stylesheet" th:href="@{/css/main.css}"
	href="../../css/main.css" />
<link rel="stylesheet" th:href="@{/css/page.css}"
	href="../../css/page.css" />
<link rel="stylesheet" th:href="@{/css/popStyle.css}"
	href="../../css/popStyle.css" />
<link rel="stylesheet" th:href="@{/css/fineuploader.css}"
	href="../../css/fineuploader.css" />
<link rel="stylesheet"
	th:href="@{/js/lib/zTree/css/zTreeStyle/zTreeStyle.css}"
	href="../../js/lib/zTree/css/zTreeStyle/zTreeStyle.css" />
<link rel="stylesheet"
	th:href="@{/js/lib/toastr/nuget/content/content/toastr.css}"
	href="../../js/lib/toastr/nuget/content/content/toastr.css" />
</head>
<body>
	<div>
		<div layout:fragment="content"></div>
	</div>
	<!--[if !IE]> -->
	<script src="/js/lib/jquery-2.0.3.min.js"></script>
	<!-- <![endif]-->
	<!--[if IE]>
    <script src="/js/lib/jquery-1.10.2.min.js"></script>
    <![endif]-->
	<script th:src="@{/js/lib/jquery-1.11.0.min.js}"></script>
    <script th:src="@{/js/lib/My97DatePicker/WdatePicker.js}"></script>
	<script th:src="@{/js/lib/layer/layer.js}"></script>
	<script th:src="@{/js/lib/toastr/toastr.js}"></script>
	<script th:src="@{/js/lib/jquery.cookie.js}"></script>
	<script th:src="@{/js/lib/all.fine-uploader.min.js}"></script>
	<script th:src="@{/js/lib/knockout-3.4.2.debug.js}"></script>
	<script th:src="@{/js/lib/knockout.mapping-latest.debug.js}"></script>
	<script th:src="@{/js/lib/knockout.validation.min.js}"></script>
	<script th:src="@{/js/lib/zh-CN.js}"></script>
	<script th:src="@{/js/lib/ko.components.js}"> </script>
	<script th:src="@{/js/lib/ko.pagination.js}"></script>
	<script th:src="@{/js/lib/zTree/js/jquery.ztree.all.js}"></script>
	<script th:src="@{/js/lib/sockjs.min.js}"></script>
	<script th:src="@{/js/lib/require.js}"></script>
	<script>
  RIT.eW.Dashboard = RIT.eW.Dashboard || {};
  var currentVersion = 0.238;
  require.config({
      baseUrl: '/js/views',
      urlArgs: "r=" + currentVersion,
      paths: {
    	    "layer": "/js/lib/layer/layer", 
    	    "zTree":"js/lib/zTree/js/jquery.ztree.all.min",
    	    "jquery":"/js/lib/jquery-1.11.0.min"
    	  }
  });
  var path = window.location.pathname.substr(1);
  var strs = path.split('/');
  if (strs.length == 1) {
      if (path.lastIndexOf('/') != path.length - 1) {
          path += '/';
      }
      path += 'index';
  }    
  require([path],function(viewModel){
	  console.log(viewModel);
  });
  ko.validation.locale('zh-CN');
  ko.validation.init({
      registerExtenders: true,
      messagesOnModified: true,
      insertMessages: true,
      parseInputAttributes: false,
      messageTemplate: null
  }, true);
  </script>
</body>
</html>
